home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / keyb / alias450.zip / ALIAS.HLP < prev    next >
Text File  |  1989-11-17  |  13KB  |  354 lines

  1.   ALIAS.HLP   -   Help File for ALIAS version 4.26 (Text revision 0.4)
  2.   --------------------------------------------------------------------
  3.  
  4. This document provides information on ALIAS, the shareware MS-DOS
  5. command abbreviation system by Robert Schifreen.  
  6.  
  7. It should not normally be necessary to read this file.  Just install ALIAS
  8. by typing ALIAS at the DOS prompt, then type ALIAS ? for help (*).  If you
  9. get stuck, or need more information, you should find it in this help file.
  10.  
  11. If problems are encountered during installation, and the ALIAS ? command
  12. does not produce a help screen, try altering the order in which you load
  13. your resident programs (look at your AUTOEXEC.BAT file).
  14.  
  15. This ALIAS.HLP file provides fuller explanations of the items mentioned
  16. on the help screen.
  17.  
  18. (*) There is a special "short" version of ALIAS available.  This is identical
  19.     to the real version, but saves some memory by omitting the online help
  20.     text.  If you have this version (find out by typing ALIAS ? or ALIAS I),
  21.     the way to get help is by reading this ALIAS.HLP file instead.
  22.  
  23.  
  24. What is ALIAS?
  25. --------------
  26.  
  27. ALIAS is a utility program for IBM PCs and compatibles.  You are free to
  28. copy it, and to distribute copies to friends.  If, after using ALIAS for
  29. a month, you decide that it is useful, you must register your copy. 
  30. You do this by sending payment direct to the author.  Full details are
  31. displayed each time you run ALIAS.COM.  If you do distribute ALIAS, make
  32. sure you distribute both files (ALIAS.COM and ALIAS.HLP).
  33.  
  34. WHAT DOES ALIAS DO?
  35. -------------------
  36.  
  37. 1.  ALIAS is a command abbreviation system for MS-DOS, plus lots more.
  38. You can abbreviate frequently-used command strings to just a couple of
  39. characters.  MS-DOS batch files let you do this already, but ALIAS is
  40. faster and more flexible, and doesn't require that you keep dozens of
  41. tiny batch files on your hard disk.
  42.  
  43. 2.  ALIAS stores the commands that you type at the DOS prompt, so you
  44. can play them back and save yourself typing.
  45.  
  46. 3.  ALIAS has command completion facility.  Once you've typed a long
  47. command once, ALIAS has stored it.  To type that command again, just
  48. type the first few characters (enough to idenify the comand) and press
  49. F4, and ALIAS will fill in the rest of the command.
  50.  
  51. 4.  ALIAS gives your machine an 'it' and an 'also' key.
  52.  
  53. 5.  ALIAS provides full command editing, on commands that you are
  54. typing, and on those that you recall.
  55.  
  56.  
  57. The remainder of this document describes ALIAS's facilities in full. 
  58. Make sure that the version number of this document (shown on the top
  59. line) is the same as the version number of your copy of ALIAS.COM. 
  60. ALIAS.COM shows its version number when you run it, or when you type
  61. ALIAS I, or when you type ALIAS ?.
  62.  
  63. Remember, for a brief summary of this help file, assuming that ALIAS is
  64. installed, just type ALIAS ? from the DOS prompt.
  65.  
  66.  
  67. INSTALLING ALIAS
  68. ----------------
  69.  
  70. If you want to use ALIAS, you have to install it every time you turn on
  71. the computer.  Do this by typing ALIAS at the DOS prompt.  ALIAS will
  72. display a messsage, and will then be ready for use.
  73.  
  74. You can put the ALIAS command in your AUTOEXEC.BAT file, if you want,
  75. which will load ALIAS every time you turn on the machine.
  76.  
  77. If you wish to avoid the long message that is displayed each time you start
  78. ALIAS, type:
  79.  
  80. ALIAS >NUL
  81.  
  82. instead of ALIAS on its own.
  83.  
  84. ALIAS lets you save abbreviations in a file.  If you use the default
  85. file name (ALIAS.DAT), and this file exists in the current directory
  86. when you load ALIAS, the definition file will be loaded.  Also, the
  87. directory from which the default file was loaded will be remembered (you
  88. can see it with ALIAS I), so whenever you update the file the changes
  89. will go to the correct place.
  90.  
  91. Note that abreviations set up by ALIAS work from the keyboard only, and
  92. not from within batch files.
  93.  
  94.  
  95. SETTING UP AN ALIAS
  96. -------------------
  97.  
  98. To set up an alias, make sure ALIAS is installed and type:
  99.  
  100. ALIAS A SHORTFORM LONGFORM
  101.  
  102. at the DOS prompt.  All ALIAS commands start with the word ALIAS.  The
  103. 'A' means 'Add an alias', and the shortform and longform are whatever
  104. you want them to be.
  105.  
  106. For example, 
  107.  
  108. ALIAS A DA DIR A:
  109.  
  110. has DA as a shortform, and DIR A: as a longform.  If you set up this
  111. alias, then DA will become an abbreviation for DIR A:.
  112.  
  113. Shortforms are limited to 6 characters.  Longforms can be 70 characters.
  114.  
  115. You can use an ampersand ('&') in your longforms, to separate multiple
  116. commands.  So,
  117.  
  118. ALIAS A DA CLS & DIR A:
  119.  
  120. will set up an alias called DA, that clears the screen and then performs
  121. a directory listing of drive A:.
  122.  
  123. You can also use the percent ('%') character in longforms, just as you
  124. can in DOS batch files.  For example,
  125.  
  126. ALIAS A CA COPY %1 A:
  127.  
  128. sets up an abbreviation called CA, that copies a file to drive A:.  The
  129. name of the file to copy should be typed after the CA.  To copy TEST.EXE
  130. to drive A:, you could just type CA TEST.EXE.
  131.  
  132. The %1 will be expanded to reflect the first word (delimited by a space)
  133. typed after CA.  You can use %2 to %9 to represent other words, and you
  134. can also use %* to represent all words.
  135.  
  136.  
  137. DELETING AN ALIAS
  138. -----------------
  139.  
  140. Aliases that are defined with the ALIAS A command are kept in memory,
  141. ready to be used.  ALIAS lets you store 30 aliases in memory at one
  142. time.  To delete an abbreviation from memory, type
  143.  
  144. ALIAS D SHORTFORM
  145.  
  146. and the specified shortform will be deleted from memory.  This will make
  147. space in the alias table for more abbreviations.
  148.  
  149. LISTING ALIASES
  150. ---------------
  151.  
  152. The ALIAS L command lists, on screen, the current aliases that have been
  153. defined and that are held in memory for use.  Typing ALIAS L lists all
  154. aliases, or you can type ALIAS L SHORTFORM to list a specific one.  Note
  155. that it is not possible to re-direct this listing to the printer - you
  156. will have to press the PrtSc key to print a list of aliases.
  157.  
  158.  
  159. SAVING ALIAS DEFINITIONS TO A FILE
  160. ----------------------------------
  161.  
  162.  
  163. When the computer is turned off, alias definitions held in memory are
  164. lost.  To prevent having to re-type all those ALIAS A commands each
  165. time, use the ALIAS W command to save the aliases to a file.
  166.  
  167. Typing ALIAS W writes all aliases to a file called ALIAS.DAT, which is
  168. placed in the current directory.  If the file already exists, it will be
  169. overwritten without warning.  You can follow ALIAS W with a filename, if
  170. you wish.
  171.  
  172. The ALIAS.DAT file will be loaded each time you install ALIAS, if the
  173. ALIAS.DAT file exists in the current directory when ALIAS is installed.
  174.  
  175. It is recommended that you use the ALIAS W command each time you add or
  176. delete an alias, so that the current aliases will always be available.
  177.  
  178. Apart from the alias definitions, the following information is also held
  179. in a saved alias file: whether the recalled-command editor is in insert
  180. or overtype mode; whether alias expansion is turned on or off; whether
  181. alias expansion is from DOS prompt or global; the current alias colour
  182. setting; whether the system is in SHOW or HIDE mode.
  183.  
  184. RESTORING ALIAS DEFINITIONS FROM A FILE
  185. ---------------------------------------
  186.  
  187. The opposite of ALIAS W is ALIAS R.  ALIAS R reads alias definitions
  188. from a file, and the definitions read will replace the entire memory-
  189. based abbreviations.
  190.  
  191. FLUSING ALIASES FROM MEMORY
  192. ---------------------------
  193.  
  194. The ALIAS F command flushes the entire memory, deleting all aliases. 
  195. Any aliases saved in a file will not be affected.
  196.  
  197. MAKING ALIASES VALID FROM THE DOS PROMPT ONLY
  198. ---------------------------------------------
  199.  
  200. Normally, aliases are valid from the DOS prompt only.  You can force
  201. this mode with the ALIAS P command.
  202.  
  203. MAKING ALIASES VALID GLOBALLY
  204. -----------------------------
  205.  
  206. ALIAS G selects global mode, in which aliases will work from within
  207. certain applications.
  208.  
  209.  
  210. TURNING OFF ALIAS EXPANSION
  211. ---------------------------
  212.  
  213. The ALIAS N (N for None) command turns off alias expansion.  Typing a
  214. shortform at the DOS prompt will have no effect.  Alias expansion can be
  215. turned back on with ALIAS